package tw.com.jinwei.db;

import java.util.HashSet;
import java.util.Set;

/**
 * Function entity. @author MyEclipse Persistence Tools
 */

public class Function implements java.io.Serializable {

	// Fields

	private String id;
	private Function function;
	private String name;
	private String classname;
	private String hotkey;
	private String type;
	private Set functions = new HashSet(0);
	private Set users = new HashSet(0);

	// Constructors

	/** default constructor */
	public Function() {
	}

	/** minimal constructor */
	public Function(String name, String classname, String type) {
		this.name = name;
		this.classname = classname;
		this.type = type;
	}

	/** full constructor */
	public Function(Function function, String name, String classname,
			String hotkey, String type, Set functions, Set users) {
		this.function = function;
		this.name = name;
		this.classname = classname;
		this.hotkey = hotkey;
		this.type = type;
		this.functions = functions;
		this.users = users;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Function getFunction() {
		return this.function;
	}

	public void setFunction(Function function) {
		this.function = function;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getClassname() {
		return this.classname;
	}

	public void setClassname(String classname) {
		this.classname = classname;
	}

	public String getHotkey() {
		return this.hotkey;
	}

	public void setHotkey(String hotkey) {
		this.hotkey = hotkey;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Set getFunctions() {
		return this.functions;
	}

	public void setFunctions(Set functions) {
		this.functions = functions;
	}

	public Set getUsers() {
		return this.users;
	}

	public void setUsers(Set users) {
		this.users = users;
	}

	public String toString() {
		return this.getName();
	}

}